package com.foreknow.animal;

public abstract class Animal2 {
    private String name;
    private int legNum;

    public String getName() {
        return name;
    }

    public int getLegNum() {
        return legNum;
    }


    public Animal2(String name, int legNum){
        this.name=name;
        this.legNum=legNum;
    }
    public abstract void shout();
}
